package com.huaxin.device.dto.enums.validation;

import com.huaxin.device.dto.enums.validator.CircuitBreakerActionValidator;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = CircuitBreakerActionValidator.class)
public @interface ValidCircuitBreakerAction {
    String message() default "无效的断路器操作，允许值：close/open/remote_trip/reclosure/lockout/unlock/fault_reset";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}